package com.ruoyi.jihuo.domain;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.config.Fastjson2TypeHandler;
import com.ruoyi.common.core.domain.JhBaseEntity;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 数据包解析详细对象 jh_tm_goods
 *
 * @author ruoyi
 * @date 2025-04-21
 */
@Data
public class JhTmGoods extends JhBaseEntity {


    /**
     * 上传数据包ID
     */
    @Excel(name = "上传数据包ID")
    private Long jhUploadDataId;

    /**
     * 品牌
     */
    @Excel(name = "品牌")
    private String jhBrand;

    /**
     * 类目属性
     */
    @Excel(name = "类目属性")
    @TableField(value = "JH_CAT_PROP", typeHandler = Fastjson2TypeHandler.class)
    private Map<String, String> jhCatProp;

    /**
     * 类目ID
     */
    @Excel(name = "类目ID")
    private String jhCategoryId;

    /**
     * 封面图片
     */
    @Excel(name = "封面图片")
    private String jhCover;

    /**
     * 图文详情
     */
    @Excel(name = "图文详情")
    private String jhDesc;

    /**
     * 展示价格
     */
    @Excel(name = "展示价格")
    private Long jhDisprice;

    /**
     * 主图图片
     */
    @Excel(name = "图片")
    @TableField(value = "JH_IMAGES", typeHandler = Fastjson2TypeHandler.class)
    private List<String> jhImages;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private String jhItemId;

    /**
     * 所在地
     */
    @Excel(name = "所在地")
    private String jhLocation;

    /**
     * 原价
     */
    @Excel(name = "原价")
    private String jhOrigprice;
    /**
     * 源商品地址
     */
    @Excel(name = "源商品地址")
    private String jhOriginalUrl;
    /**
     * 促销价格
     */
    @Excel(name = "促销价格")
    private String jhPromoprice;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long jhQuantity;

    /**
     * 销售属性
     */
    @Excel(name = "销售属性")
    @TableField(value = "JH_SALE_PROPS", typeHandler = Fastjson2TypeHandler.class)
    private JSONArray jhSaleProps;

    /**
     * 已售
     */
    @Excel(name = "已售数量")
    private int jhSell;

    /**
     * 店铺ID
     */
    @Excel(name = "店铺ID")
    private String jhShopId;

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称")
    private String jhShopName;

    /**
     * SKU
     */
    @Excel(name = "SKU")
    @TableField(value = "JH_SKUS", typeHandler = Fastjson2TypeHandler.class)
    private JSONArray jhSkus;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String jhTitle;

    /**
     * 视频
     */
    @Excel(name = "视频")
    private String jhVideo;


}
